#!/bin/bash

export PATH=$JAVA_HOME/bin:$PATH
ROOT_PATH=$(cd "$(dirname $0)"; pwd)
JAR_FULL_PATH=$(find $ROOT_PATH -maxdepth 1 -name "*.jar")
JAR_NAME=${JAR_FULL_PATH##*/}

ps -ef|grep ${JAR_NAME}|grep -v 'grep'|awk '{print $2}'|xargs kill -15
